home *** CD-ROM | disk | FTP | other *** search
/ PC Format (UK) 134 / PC Format DVD 2002.iso / Full / 3D Flash Animator / 3DFlashAnimator3Setup.exe / file0783_1ef2b1_1ef613.bin < prev    next >
Encoding:
Text File  |  2001-11-08  |  2.7 KB  |  93 lines

  1. <title>New Extrusion</title>
  2.  
  3. <script language="EasyScript">
  4.  
  5. registry = "New\\Model\\Extrusion";
  6.  
  7. function OnLoad ()
  8. {
  9.     extrusion = new Extrusion;
  10.     extrusion.setDefaultName ();
  11.  
  12.     radio_size = getRegistryValue (registry, "radio_size", 1);
  13.     user_width = getRegistryValue (registry, "user_width", 640);
  14.     user_height = getRegistryValue (registry, "user_height", 480);
  15. }
  16.  
  17. function CreateExtrusion ()
  18. {
  19.     setRegistryValue (registry, "radio_size", radio_size);
  20.     setRegistryValue (registry, "user_width", user_width);
  21.     setRegistryValue (registry, "user_height", user_height);
  22.  
  23.     width = 320;
  24.     height = 240;
  25.     switch (radio_size){
  26.         case 1:
  27.             width = 320;
  28.             height = 240;
  29.             break;
  30.         case 2:
  31.             width = 480;
  32.             height = 360;
  33.             break;
  34.         case 3:
  35.             width = 640;
  36.             height = 480;
  37.             break;
  38.         case 4:
  39.             width = user_width;
  40.             height = user_height;
  41.             break;}
  42.  
  43.     extrusion.bitmap.width = width;
  44.     extrusion.bitmap.height = height;
  45.     extrusion.bitmap.depth = 3;
  46.     extrusion.bitmap.show_flag = true;
  47.     extrusion.bitmap.background_color_on = true;
  48.  
  49.     if (extrusion.bitmap.create ()){
  50.         extrusion.bitmap.resetCenter ();
  51.         window.returnValue (extrusion);
  52.         window.close ();}
  53. }
  54.  
  55. </script>
  56.  
  57. <body bgcolor="normal" text="#000000" OnLoad="OnLoad()" OnEnter="CreateExtrusion()" translate>
  58. <div valign=middle>
  59.  
  60. <table width="100%" cellspacing=4 cellpadding=0 bgcolor="light" borderstyle="raised">
  61. <tr><td valign=top><img src="images/large_bitmap.bitmap">
  62. <td><table>
  63. <tr><td>
  64. <font size=5>Extrusion</font>
  65. <td><input type="text" size=16 name="extrusion.name">
  66. </table></table>
  67.  
  68. <spacer height=4>
  69.  
  70. <table width=100% cellspacing=4 cellpadding=0 bgcolor="light" borderstyle="raised">
  71. <tr><td>
  72. <table cellspacing=8 cellpadding=2><tr><td>
  73.     <tr><td><u>Drawing Surface</u>
  74.     <tr><td><spacer height=4>
  75.     <tr><td><input type="radio" name="radio_size" value="1"><a onclick="radio_size=1">320 x 240</a><br>
  76.     <tr><td><input type="radio" name="radio_size" value="2"><a onclick="radio_size=2">480 x 360</a><br>
  77.     <tr><td><input type="radio" name="radio_size" value="3"><a onclick="radio_size=3">640 x 480</a><br>
  78.     <tr><td><input type="radio" name="radio_size" value="4"><a onclick="radio_size=4">Other</a>
  79.     <input type="text" name="user_width" size=5>x
  80.     <input type="text" name="user_height" size=5>
  81. </table>
  82. </table>
  83.  
  84. <spacer height=8>
  85.  
  86. <table cellspacing=0 cellpadding=0 width="100%">
  87. <tr><td align=right>
  88. <a button onMouseUp="CreateExtrusion()" width=+10 height=+2><img src="images/small_bitmap.bitmap" hspace=4>Create extrusion</a>
  89. <a button onMouseUp="window.close()" width=+20 height=+2><img src="images/small_cancel.bitmap" hspace=4>Cancel</a>
  90. </table>
  91.  
  92. <spacer height=4>
  93.